package com.meatball.authorization.data.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

/**
 * TODO 用户登陆参数
 *
 * @author 张翔宇
 * @since 2024年3月15日
 */
@Schema(description = "用户登陆参数")
data class LoginDto(
        @Schema(description = "用户名", required = true, example = "meatball")
        @NotBlank(message = "用户名不能为空")
        val username: String,

        @Schema(description = "密码", required = true, example = "3238cd41307062a8256c427ac9723baa")
        @NotBlank(message = "密码不能为空")
        val password: String
)
